package com.manbu.live.msg.provider.rpc;

import com.manbu.live.msg.interfaces.ISmsRpc;
import com.manbu.live.msg.dto.MsgCheckDTO;
import com.manbu.live.msg.enums.MsgSendResultEnum;
import com.manbu.live.msg.provider.service.ISmsService;
import jakarta.annotation.Resource;
import org.apache.dubbo.config.annotation.DubboService;

/**
 * @author hanWang
 * @Title:
 * @Package
 * @Description:
 * @date 2024/1/2711:19 PM
 */
@DubboService
public class SmsRpcImpl implements ISmsRpc {
    @Resource
    private ISmsService smsService;
    @Override
    public MsgSendResultEnum sendMessage(String phone) {
        return smsService.sendMessage(phone);
    }
    @Override
    public MsgCheckDTO checkLoginCode(String phone, Integer code)
    {
        return smsService.checkLoginCode(phone,code);
    }
    @Override
    public void insertOne(String phone, Integer code) {
        smsService.insertOne(phone,code);
    }
}
